package cn.yunhe.daoImpl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import cn.yunhe.dao.RecordDao;
import cn.yunhe.entity.Record;

public class RecordDaoImpl extends HibernateDaoSupport implements RecordDao {

	public Record get(int recordId) {
	
		return super.getHibernateTemplate().get(Record.class, recordId);
	}

	public void addRecord(Record record) {
		super.getHibernateTemplate().save(record);

	}

	public void delRecord(int recordId) {
		super.getHibernateTemplate().delete(this.get(recordId));

	}

}
